import 'package:dio/dio.dart';
import 'package:wanAndroid/common/uts/log_uts.dart';

class HttpCookie extends InterceptorsWrapper {
  @override
  void onRequest(RequestOptions options, RequestInterceptorHandler handler) {
    LogUts.netLog("onRequest = 请求前");
    super.onRequest(options, handler);
  }

  @override
  void onResponse(Response response, ResponseInterceptorHandler handler) {
    LogUts.netLog("onResponse = 请求后");
    super.onResponse(response, handler);
  }

  @override
  void onError(DioError err, ErrorInterceptorHandler handler) {
    LogUts.netLog("onError = 异常");
    super.onError(err, handler);
  }
}
